#include "mystdio.h"
#include<unistd.h>
#include<stdio.h>
#define file "test.txt"

int main()
{
   _FILE* fp =  _fopen(file, "w");
    if(fp == NULL)
    {
        return 1;
    }


    const char* s = "this is mystdio\n";
    int cnt = 10;

    while(cnt--)
    {
        _fwrite(fp, s, strlen(s));
    }

    _fclose(fp);
    return 0;
}
